import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/3/27 17:59
 */

public class Solution {
    public boolean isUnique(String astr){
        boolean[] hash = new boolean[128];
        for (int i = 0; i < astr.length(); i++) {
            char c = astr.charAt(i);
            if(hash[c]){
                return false;
            }
            hash[c] = true;
        }
        return true;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()){
            String s = in.nextLine();
            Solution solution = new Solution();
            System.out.println(solution.isUnique(s));
        }
    }
}